<%@page import="实体类.Banji"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader.Array"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="static/bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>

	<form action="${pageContext.request.contextPath}/student?method=insert" method="post">
		<table class="table table-striped table-bordered table-hover table-condensed">
			<tr><th>用户名</th><td><input type="text" name="name"></td></tr>
			<tr><th>年龄</th><td><input type="text" name="age"></td></tr>
			<tr><th>性别</th><td><input type="radio" name="gender"/ value="男">男&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="gender" value="女" checked="true"/>女</td></tr>
			<tr><th>班级Id</th><td>
			<select name="banjiId">
				<c:forEach items="${list}" var="banji">
					<option value="${banji.id}">${banji.name}</option>
				</c:forEach>
			</select></td></tr>
		</table>
		<input type="submit" value="添加">
	</form>
	
</body>
</html>